import request from '@/utils/request'

// 查询水处理运行日志列表
export function listWaterdeal(query) {
  return request({
    url: '/productionProcess/waterdeal/list',
    method: 'get',
    params: query
  })
}

// 查询水处理运行日志详细
export function getWaterdeal(id) {
  return request({
    url: '/productionProcess/waterdeal/' + id,
    method: 'get'
  })
}

// 新增水处理运行日志
export function addWaterdeal(data) {
  return request({
    url: '/productionProcess/waterdeal',
    method: 'post',
    data: data
  })
}

// 修改水处理运行日志
export function updateWaterdeal(data) {
  return request({
    url: '/productionProcess/waterdeal',
    method: 'put',
    data: data
  })
}
export function checkWaterdeal(data) {
  return request({
    url: '/productionProcess/waterdeal/check',
    method: 'put',
    data: data
  })
}
// 删除水处理运行日志
export function delWaterdeal(id) {
  return request({
    url: '/productionProcess/waterdeal/' + id,
    method: 'delete'
  })
}


// 读取数据
export function handleDate(query) {
  return request({
    url: '/Productionline/interfaceReport/getSCL',
    method: 'get',
    params: query
  })
}
